import http from '@/utils/http'

// 获取我的订单列表
export function getOrderList(params) {
  return http.get('/wxpub/api/orderv2', params)
}
// 获取权限
export function getStudyPower(params) {
  return http.get('/ban/study_registration/user_msg', params)
}
// 获取班级
export function getStudyClassInfo(params) {
  return http.get('/ban/study_learning_center/couser_ban', params)
}
// 获取首页老师
export function getTeacherInfo(params) {
  return http.get('/ban/study_learning_center/accompany_teacher_message', params)
}
// 获取 今日学习列表
export function getTodayList(params) {
  return http.get('/ban/study_learning_center/learn_today', params)
}
// 获取 今日学习 日历
export function getTodayCalendar(params) {
  return http.get('/ban/study_learning_center/plan_range', params)
}
// 获取 今日学习 每天任务
export function getEverydayTask(params) {
  return http.get('/ban/study_learning_center/learning_plan', params)
}
// 获取 班级列表
export function getClassList(params) {
  return http.get('/ban/study_learning_center/ban_user_rank', params)
}
// 获取 班级资料
export function getClassFolder(params) {
  return http.get('/ban/study_learning_center/teacher_directory', params)
}
// 获取 班级资料PDF
export function getClassPDF(params) {
  return http.get('/ban/study_learning_center/learn_file', params)
}

// 获取 消息列表
export function getMessageList(params) {
  return http.get('/ban/study_weekly/user_msg', params)
}

// 获取 消息二维码
export function getMessageQrcode(params) {
  return http.get('/ban/study_weekly/qrcode', params)
}
// 获取 作业列表 科目
export function getHomeworkSubject(params) {
  return http.get('/ban/study_learnshift/user_subject', params)
}
// 获取 作业列表 
export function getHomeworkList(params) {
  return http.get('/ban/study_learnshift/task', params)
}

// 获取 作业 问题详情 
export function getQuestion(params) {
  return http.get('/ban/study_learning_center/learn_exam_task', params)
}
// 做题上报
export function uploadAnswer(params) {
  return http.post('/ban/study_learning_center/reporting_learn_exam', params)
}
// 获取 视频播放地址
export function getVideoAddress(params) {
  return http.get('/ban/study_learning_center/learn_more_video_v2', params)
}
// 获取 题目
export function getExamDetail(params) {
  return http.get('/ban/study_learning_center/learn_exam_task', params)
}
// 获取 做题 作业点评
export function getExamVideo(params) {
  return http.get('/ban/study_learning_center/task_review', params)
}
// 视频上报
export function uploadViedoInfo(params) {
  return http.post('/storage/video/push_video_progress', params)
}

//获取目录数据
export function getStudyCatalogue(params) {
  return http.get('/ban/private_edu/common/catalogue', params)
}
// 加入班级（仅混合班）
export function joinBlendClass(params) {
  return http.post('/ban/study_registration/in_class', params)
}
//获取入学信息题目
export function getEntranceMsg(params) {
  return http.get('/ban/study_registration/information_fill', params)
}
//提交入学信息
export function postEntranceMsg(params) {
  return http.post('/ban/study_registration/information_fill', params)
}
//获取实操入学问卷
export function getScEntranceMsg(params) {
  return http.get('/ban/study_registration/shicao_question', params)
}
//填写实操入学问卷
export function postScEntranceMsg(params) {
  return http.post('/ban/study_registration/shicao_question', params)
}
//实操学员申请学习计划
export function postScApplyPlan(params) {
  return http.post('/ban/study_learning_center/apply_shicao_plan', params)
}
// 获取实操学习计划
export function getStudyPlan(params) {
  return http.get('/ban/study_learning_center/shicao_task', params)
}
//用户选择切换学习计划
export function switchScStdPlan(params) {
  return http.post('/ban/study_learning_center/switch_plan', params)
}


/**私教学习中心 start */
// 获取作业问题列表
export function getHomeWorkList(params) {
  return http.post('/ban/private_edu/homework/questions', params)
}
// 作业提交
export function submitHomework(params) {
  return http.post('/ban/private_edu/homework/submit_homework', params)
}
/**私教学习中心 end */